package com.itboy.mall.wms.warepurchasedetail.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("采购需求合并对象")
public class PurchaseDetailBo {
	/**
	 * 采购单id
	 */
	@ApiModelProperty("采购单id")
	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "采购单id不能为空")
	private Long purchaseId;

	/**
	 * 采购清单id
	 */
	@ApiModelProperty("采购清单id")
	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "采购清单id不能为空")
	private Long[] ids;

}
